package series

import (
	"errors"
	"fmt"
)

func GetFibonacci(n int) ([]int, error) {
	if n < 0 || n > 100 {
		return nil, errors.New("n shoud be in [1,100]")
	}

	fibList := []int{1, 1}
	for i := 2; i < n; i++ {
		fibList = append(fibList, fibList[i-2]+fibList[i-1])
	}
	return fibList, nil
}
func init() {
	fmt.Println("iiiinit1")
}

func init() {
	fmt.Println("iiiiinit2")
}
